/*
 * TradeGood.cpp
 *
 *  Created on: Oct 29, 2012
 *      Author: ryan
 */

#include "TradeGood.h"

//Used for generation of trade goods.

TradeGood::TradeGood(const char *name, const char *description, const char*imageName,
			trade_good_t id,
			tech_level_t minProduce, tech_level_t minUse, tech_level_t mostProduced,
			int basePrice, int increasePerLevel, int variance,
			world_event_t event, resources_t cheap, resources_t expensive, int minPrice,
                     int maxPrice) : name(name), description(description), imageName(imageName),
                                        id(id), minProduce(minProduce), minUse(minUse), mostProduced(mostProduced),
                                        basePrice(basePrice), increasePerLevel(increasePerLevel), variance(variance),
                                        event(event), cheap(cheap), expensive(expensive), minPrice(minPrice),
                                        maxPrice(maxPrice) { }



const char *TradeGood::getName()
{
	return name;
}
const char * TradeGood::getDescription()
{
	return description;
}
const char * TradeGood::getImageName()
{
	return imageName;
}
trade_good_t TradeGood::getId()
{
	return id;
}
tech_level_t TradeGood::getMinProduce()
{
	return minProduce;
}
tech_level_t TradeGood::getMinUse()
{
	return minUse;
}
tech_level_t TradeGood::getMostProduced()
{
	return mostProduced;
}
int TradeGood::getBasePrice()
{
	return basePrice;
}
int TradeGood::getIncreasePerLevel()
{
	return increasePerLevel;
}
int TradeGood::getVariance()
{
	return variance;
}
world_event_t TradeGood::getEvent()
{
	return event;
}
resources_t TradeGood::getCheap()
{
	return cheap;
}
resources_t TradeGood::getExpensive()
{
	return expensive;
}
int TradeGood::getMinPrice()
{
	return minPrice;
}
int TradeGood::getMaxPrice()
{
	return maxPrice;
}


void TradeGood::setName(const char * name)
{
	this->name = name;
}
void TradeGood::setDescription(const char * description)
{
	this->description = description;
}
void TradeGood::setImageName(const char * imageName)
{
	this->imageName = imageName;
}
void TradeGood::setId(trade_good_t id)
{
	this->id = id;
}
void TradeGood::setMinProduce(tech_level_t minProduce)
{
	this->minProduce = minProduce;
}
void TradeGood::setMinUse(tech_level_t minUse)
{
	this->minUse = minUse;
}
void TradeGood::setMostProduced(tech_level_t mostProduced)
{
	this->mostProduced = mostProduced;
}
void TradeGood::setBasePrice(int price)
{
	this->basePrice = basePrice;
}
void TradeGood::setIncreasePerLevel(int increasePerLevel)
{
	this->increasePerLevel = increasePerLevel;
}
void TradeGood::setVariance(int variance)
{
	this->variance = variance;
}
void TradeGood::setEvent(world_event_t event)
{
	this->event = event;
}
void TradeGood::setCheap(resources_t cheap)
{
	this->cheap = cheap;
}
void TradeGood::setExpensive(resources_t expensive)
{
	this->expensive = expensive;
}
void TradeGood::setMinPrice(int minPrice)
{
	this->minPrice = minPrice;
}
void TradeGood::setMaxPrice(int maxPrice)
{
	this->maxPrice = maxPrice;
}
